package middleware

import (
	"github.com/kataras/iris/v12/middleware/cors"
)

func Cors() *cors.CORS {

	// 配置CORS
	crs := cors.New()

	// 配置CORS

	crs.AllowOrigin("*,")
	crs.AllowHeaders("*")
	crs.ExposeHeaders("Content-Length", "Authorization")

	return crs

}
